package com.zhao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhao.pojo.Chart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ChartMapper extends BaseMapper<Chart> {
    /**
     * 查询被评论人的 全部收藏夹 并 按名字字符排序
     * @param author 被评论人
     * @return
     */
    List<String> CollectgroupAll(@Param("author") String author);

    List<Chart> CollectByAll(@Param("author")String author,@Param("s") String s);

    List<Chart> queryAllAuthor(@Param("author")String userAccount);
}
